import Router from "vue-router"
import Vue from "vue"
Vue.use(Router)
const router = new Router({
    mode: 'history',
    routes: [{
        path: '/content',
        component: () => import('@/views/content.vue'),
        children: [{
            path: '/content/movies',
            redirect: '/content/movies/hot',
            component: () => import('@/views/content/movies.vue'),
            children: [{
                path: '/content/movies/wait',
                component: () => import('@/views/content/movies.vue'),
            },{
                path: '/content/movies/hot',
                component: () => import('@/views/content/movies.vue'),
            }
        ]
        }, {
            path: '/content/cinema',
            component: () => import('@/views/content/cinema.vue')
        }, {
            path: '/content/my',
            component: () => import('@/views/content/my.vue')
        }]
    }, {
        path: '/diqu',
        component: () => import('@/views/diqu.vue')
    }, {
        path: '/details',
        component: () => import('@/views/Moviedetail.vue')
    }, {
        path: '/',
        redirect: '/content/movies'
    }, ]
})
export default router